﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="cartdetail.ascx.cs" Inherits="controls_client_cartdetail" %>
<table border="1" cellpadding="0" cellspacing="0" align="center">
    <tr bgcolor="#00CC99">
        <td align="center">
            Tên sản phẩm
        </td>
        <td align="center">
            Số lượng
        </td>
        <td align="center">
            Đơn giá
        </td>
        <td align="center">
            Thành tiền
        </td>
    </tr>
<asp:Repeater ID="UpdateCart" runat="server">
    <ItemTemplate>    
    <tr>
        <td width="250">
            <asp:Label ID="id" type= runat="server" Text='<%#Eval("Id") %>' Visible="false" />      
            <%#DataBinder.Eval(Container.DataItem, "Name") %>
        </td>
        <td width="75" align="center">
            <%#DataBinder.Eval(Container.DataItem, "Quantity") %>
        </td>
        <td width="150">
            <%#DataBinder.Eval(Container.DataItem, "Price") %> vnđ
        </td>
        <td width="200">
            <%#Convert.ToDouble(DataBinder.Eval(Container.DataItem, "Price")) * Convert.ToDouble(DataBinder.Eval(Container.DataItem, "Quantity"))%> vnđ
        </td>
    </tr>
    </ItemTemplate>
</asp:Repeater>
    <tr>
        <td align="right" colspan="3">
            &nbsp;
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Tổng tiền :"></asp:Label>
            &nbsp;&nbsp;
        </td>
        <td>
            <asp:Label ID="sum" runat="server" Text="sum" Font-Bold="True" ForeColor="Red"></asp:Label>
        </td>
    </tr>
</table>